<%@ page 
	language="java" 
	contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>Showcase</title>
</head>

<body>
    <h1>Fileupload sample</h1>

	<s:actionerror />
	<s:fielderror />
    <s:form action="doUpload" method="POST" enctype="multipart/form-data" namespace="/fileupload" >
        <s:file name="upload" label="File"/>
        <s:textfield name="caption" label="Caption"/>
        <s:submit />
    </s:form> 
   	<ul>
        <li>ContentType: <s:property value="uploadContentType" /></li>
        <li>FileName: <s:property value="uploadFileName" /></li>
        <li>File: <s:property value="upload" /></li>
        <li>Caption:<s:property value="caption" /></li>
    </ul>
    <s:a action="act_cargar_formulario_consultar_archivo" namespace="/fileupload"> aca</s:a>
</body>
</html>

